<?php
$uploaddir = 'css/';
$uploadfile = $uploaddir . basename($_FILES['file']['name']);
 
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile))
{   
	list($current_width, $current_height) = getimagesize($uploadfile);
    $data=$uploadfile."width:".$current_width;
	echo $data;	
	
} else {
    echo "Possible file upload attack!\n";
}
?>